package com.pz.gulimall.common.to;

import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;
import java.util.List;

@Data
public class AliPayTo {
    @NotEmpty(message = "商户订单号必填")
    private String out_trade_no; // 商户订单号 必填
    @NotEmpty(message = "订单名称必填")
    private String subject; // 订单名称 必填
    @NotEmpty(message = "付款金额必填")
    private String total_amount;  // 付款金额 必填
    private List<OrderItem> orderItemList;

    @Data
    @ToString
    public static class OrderItem {
        private Long categoryId;
        private Long skuId;
        private Long id;
        private Integer count;
        private BigDecimal skuPrice;
        private String skuPic;
        private String skuName;
    }
}
